package vesion2.barrier;

import vesion2.object.GameObject;
import vesion2.object.Point;
import vesion2.tank.Bullet;

import java.awt.*;

public class Water extends Barrier{
    public Water(Point left_up, int width, int height) {
        super(left_up, width, height);
        backColor=new Color(0x7BD2E8);
    }
    public Water(){this(new Point(),0,0);}

    @Override
    public boolean isIntersect(GameObject object) {
        if(object instanceof Bullet)
            return false;
        else
        return super.isIntersect(object);
    }
}
